.img_preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  overflow: hidden;
  color: #ccc;
  .img {
    opacity: 0;
    // 禁止移动端默认触摸事件
    touch-action: none;
  }
  .img1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    display: none;
  }
  .iconfont,
  .count_info {
    display: none;
    position: absolute;
    padding: 1rem;
    font-size: 3rem;
    background-color: rgb(0 0 0 / 40%);
    border-radius: 1rem;
    /*cursor: pointer;*/
  }
  .iconfont:hover {
    color: var(--text-hover-color);
  }
  .pre {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .close {
    top: 0;
    left: 0;
    border-radius: 0 0 50% 0;
  }
  .rotate_btn {
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .count_info {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    pointer-events: none;
  }
  .load {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../../images/img/loading.svg');
    background-size: 10rem 10rem;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
  }
}
html.head_btn_to_right {
  .img_preview .close {
    right: 0;
    left: auto;
    border-radius: 0 0 0 50%;
  }
}
